package cn.chencaiju.day04;

import org.junit.Test;

public class TestProgrammer {
	@Test public void testGetSalaey() {
		Employee e=new Programmer(0.88);
		e.setSalaey(10000);
		System.out.println(e.getSalary());
	}
	@Test public void testCast() {
		Employee e=new Programmer(0.9);
		Programmer p=(Programmer) e;
		p.coding();
	}
	@Test public void testErrorCast() {
		Employee e=new Programmer(0.9);
		Designer d=(Designer) e;
		d.desing();	
	}
	

}
